package cn.newgrand.netcall.consultant;

import java.util.ArrayList;
import java.util.List;

public class SpecialistQueueManager {

	private static SpecialistQueueManager me;
	private static List<String> specialistQueue =new ArrayList<String>(); 
	
	
	public static SpecialistQueueManager getInstance(){
		if(me==null){
			me =new SpecialistQueueManager();
		}
		return me;
	}
	public void putWhenJoin(String spid){
		if(!specialistQueue.contains(spid))
			specialistQueue.add(spid);
	}
	public boolean isJoinQueue(String spid){
		return specialistQueue.contains(spid);
	}
	public void removeWhenLeave(String spid){
		specialistQueue.remove(spid);
	}
}
